package com.wang.jmonkey.common.model.enums;

/**
 * @Description 是否枚举
 * @Author HeJiawang
 * @Date 2021/5/8 16:03
 */
public enum BooleanEnum implements BaseEnum<Integer> {

    YES(1, "是"),
    NO(0, "否")
    ;

    private int value;
    private String desc;

    BooleanEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
